import java.util.Random;
import java.util.Scanner;
public class Test1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int a,b;
        Random r=new Random();
        for (int i = 1,j=0;; i++) {
            a=r.nextInt(101);
            b=r.nextInt(101);
            int chara=r.nextInt(2);
            String s1;
            if(a+b>100&&a-b<0){
                continue;
            } else if (i%2==0&&a+b<=100&&a-b>=0&&chara==0) {
                s1=a+"+"+b+"="+(a+b);
                j++;
                System.out.printf("%-2d:%-12s",j,s1);
                if(j%5==0){
                    System.out.println();
                }
            } else if (i%2!=0&&a+b<=100&&a-b>=0&&chara==1) {
                s1=a+"-"+b+"="+(a-b);
                j++;
                System.out.printf("%-2d:%-12s",j,s1);
                if(j%5==0){
                    System.out.println();
                }
            }
            if(j==50){
                break;
            }
        }
    }
}
